# -*- coding:utf-8 -*-
import Ice
Ice.loadSlice("LesComposer.ice")
import LESComposer

class WrapServiceConfigParams(LESComposer.ServiceConfigParams):
    '''
    ServiceConfigParams对象的包裹类，负责初始化
    '''
    def __init__(self):
        self.workerNum = 4
        self.composeQueueDeep = 8
        self.imageQueueDeep = 8
        self.maxNodeNum = 40
        self.saveProcessedImageFlag = 1
        self.composeImcompleteImageFlag = 0
        self.saveImcompleteImageFlag = 1
        self.periodicallyCleanImage = 1
        self.rawImagePath = './RawImage/'
        self.extConfig = {'SvcExterndString0':'SvcExtStrValue1'}


class WrapComposeDynamicText(LESComposer.ComposeDynamicText):
    '''
    ComposeDynamicText对象的包裹类，负责初始化
    '''
    def __init__(self):
        self.strategy = ''
        self.fileName = ''
        self.rawfileNames = []
        self.imageText = []
        self.extConfig = {}

class WrapComposeConfig(LESComposer.ComposeConfig):

    def __init__(self):
        self.imageSize = ''
        self.spaceColor = ''
        self.picConfig = []
        self.picPosition = []
        self.extConfig = {}


class WrapLineConfig(LESComposer.LineConfig):

    def __init__(self):
        self.isTitle = 0
        self.composeationMode = 0
        self.autoFontResize = 1
        self.alignment = 0
        self.bound = ''
        self.foregroundColor = ''
        self.backgroundColor = ''
        self.rect = ''
        self.font = ''
        self.extConfig = {}


class WrapPicRect(LESComposer.PicRect):

    def __init__(self):
        self.srcPicIdx = 0
        self.srcRect = ''
        self.dstRect = ''


class WrapDSPParam(LESComposer.DSPParam):

    def __init__(self):
        self.dspName = ''
        self.dspParams = {}
        self.funcFlags = {}


class WrapDSPConfig(LESComposer.DSPConfig):

    def __init__(self):
        self.dsp = []
        self.extConfig = {}